#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>

#include "roscommunicate.h"
#include "balljoystick.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();
    void timeroutslot();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();


private:
    int vehicleJog();

private:
    Ui::MainWindow *ui;

    RosCommunicate* rosCommnicate;
    QTimer *timer;
    BallJoyStick *joyStick;
    bool useJoyStick;
};

#endif // MAINWINDOW_H
